package com.a01_2021.thousandstimes.instance.service;

import com.a01_2021.thousandstimes.exception.CustomException;
import com.a01_2021.thousandstimes.instance.entity.WorkLog;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author E1xP
 * @since 2021-03-10
 */
public interface IWorkLogService extends IService<WorkLog> {

    List<WorkLog> getAllWorkLog(long userId) throws CustomException;

    WorkLog addWorkLog(long userId, String workPlan, String workRecord, String workSummary);

    WorkLog updateWorkLog(long id, long userId, String workPlan, String workRecord, String workSummary) throws CustomException;

    WorkLog finishWorkLog(long id, long userId) throws CustomException;

    WorkLog addWorkLogToUser(long userId, String workPlan, String workRecord, String workSummary) throws CustomException;
}
